package com.xk857.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author CV大魔王
 * @Description 天气类
 * @date 2021/3/2 20:38
 */
@ApiModel("天气信息")
@NoArgsConstructor
@Data
public class Weather {

    @ApiModelProperty("省份")
    private String provinces;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("天气信息")
    private List<Detail> detailList;


    @Data
    @NoArgsConstructor
    public static class Detail {

        @JsonFormat(pattern = "yyyy年MM月dd日")
        @ApiModelProperty("日期")
        private Date idate;

        @ApiModelProperty("星期")
        private String week;

        @ApiModelProperty("夜晚温度")
        @JsonProperty("night_air_temperature")
        private String nightAirTemperature;

        @ApiModelProperty("白天温度")
        @JsonProperty("day_air_temperature")
        private String dayAirTemperature;

        @ApiModelProperty("天气情况")
        private String weather;

        @ApiModelProperty("湿度")
        private String humidity;

        @ApiModelProperty("空气质量(文字)")
        private String quality;

        @ApiModelProperty("PM2.5")
        private String aqiPm25;

        @ApiModelProperty("紫外线类型")
        private String ultravioletRaysStatus;
    }


}
